package org.jeecg.modules.storage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.storage.entity.BussStorageDetail;
import org.jeecg.modules.storage.mapper.BussStorageDetailMapper;
import org.jeecg.modules.storage.service.IBussStorageDetailService;
import org.jeecg.modules.storage.vo.BussStorageDetailVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 入库单明细
 * @Author: jeecg-boot
 * @Date:   2024-06-20
 * @Version: V1.0
 */
@Service
public class BussStorageDetailServiceImpl extends ServiceImpl<BussStorageDetailMapper, BussStorageDetail> implements IBussStorageDetailService {
	
	@Autowired
	private BussStorageDetailMapper bussStorageDetailMapper;
	
	@Override
	public List<BussStorageDetailVo> selectByMainId(String mainId) {
		return bussStorageDetailMapper.selectByMainId(mainId);
	}

	@Override
	public List<BussStorageDetailVo> queryDetailForOutbound(BussStorageDetailVo bussStorageDetailVo) {
		return bussStorageDetailMapper.queryDetailForOutbound(bussStorageDetailVo);
	}

	@Override
	public List<BussStorageDetailVo> queryDetailByIds(List<String> ids) {
		String[] idArray = ids.stream().toArray(String[]::new);
		return bussStorageDetailMapper.queryDetailByIds(idArray);
	}
}
